<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
    
    <body>
        
        <ui:composition template="./templatesuvey.xhtml">
            
            <ui:define name="top">
                top
            </ui:define>

            <ui:define name="left">
                left
            </ui:define>

            <ui:define name="right">
                right
            </ui:define>

            <ui:define name="content">
                <h:outputText value="#{managedBeanStudent.survey.contentSurvey}"></h:outputText>
                <h:dataTable value="#{managedBeanStudent.survey.question}" var="question">
                    <h:column>
                        <h:outputText value=" #{question.id}. "></h:outputText><h:outputText value="#{question.content}"></h:outputText>
                        <h:dataTable value="#{question.listAnswer}" var="answer">
                            <h:column>
                                <h:outputText value=" #{answer.id}."></h:outputText>
                                <h:selectBooleanCheckbox disabled="true" value="#{answer.checked}"></h:selectBooleanCheckbox>
                                <h:outputText value="#{answer.option}"></h:outputText>
                            </h:column>
                            <h:column>
                                <h:outputText value="#{answer.rate}"></h:outputText>
                               
                            </h:column>
                        </h:dataTable>
                    </h:column>
                </h:dataTable>
                <h:commandButton value="Ok" action="index"></h:commandButton>
            </ui:define>

        </ui:composition>
        
    </body>
</html>
